package com.weixx.task.controller;

import com.weixx.task.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AsyncController {
    @Autowired
    AsyncService asyncService;


    @RequestMapping("/asyn")
    public String hello(){
        asyncService.hello();//停止3秒 转圈
        return "OK";
    }
}
